package tt.lab.pmbok.service;

import java.util.List;

import javax.annotation.Resource;

import tt.lab.pmbok.dao.AreaDao;
import tt.lab.pmbok.model.Area;

public class AreaServiceImpl implements AreaService{
	@Resource(name = "areaDao")
	private AreaDao areaDao;
	
	
	public Area load(int id) {
		return areaDao.loadById(id).get(0);
	}
	public List<Area> loadAll() {
		
		return areaDao.loadById(0);
	}
}
